package com.example.barcodeapp.ui.home.activity;


import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.barcodeapp.MainActivity;
import com.example.barcodeapp.R;
import com.example.barcodeapp.base.BaseActivity;
import com.example.barcodeapp.interfaces.IBasePersenter;
import com.example.barcodeapp.ui.LoginActivity;
import com.example.barcodeapp.ui.home.AdapterRili;
import com.google.android.material.appbar.AppBarLayout;
import com.haibin.calendarview.Calendar;
import com.haibin.calendarview.CalendarLayout;
import com.haibin.calendarview.CalendarView;

import butterknife.BindView;
import butterknife.ButterKnife;


public class RiLiActivity extends BaseActivity {

    @BindView(R.id.iv_back_circle)
    ImageView ivBackCircle;
    @BindView(R.id.ff_back_contener)
    FrameLayout ffBackContener;
    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.tv_location)
    TextView tvLocation;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.ll_to_search)
    LinearLayout llToSearch;
    @BindView(R.id.right_iv)
    ImageView rightIv;
    @BindView(R.id.right_iv_two)
    ImageView rightIvTwo;
    @BindView(R.id.tv_rught_)
    TextView tvRught;
    @BindView(R.id.tv_right_two)
    TextView tvRightTwo;
    @BindView(R.id.toolBar)
    Toolbar toolBar;
    @BindView(R.id.calendarView)
    CalendarView calendarView;
    @BindView(R.id.recyclerView)
    RecyclerView recyclerView;
    @BindView(R.id.calendarLayout)
    CalendarLayout calendarLayout;
    @BindView(R.id.appbar)
    AppBarLayout appbar;
    @BindView(R.id.queren_rili_yueke)
    TextView querenRiliYueke;

    @Override
    protected int getLayout() {
        return R.layout.activity_ri_li;
    }

    @Override
    protected void initView() {
        setToolBar(true, false, true, false, false);
        setTitle("预约日历", R.color.black, R.color.white);
        //setOnDateSelectedListener setOnCalendarSelectListener setOnDateSelectedListener  日期的点击事件
        calendarView.setOnDateSelectedListener(new CalendarView.OnDateSelectedListener() {
            @Override
            public void onDateSelected(Calendar calendar, boolean isClick) {

            }
        });

        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        AdapterRili adapterRili = new AdapterRili(this);
        recyclerView.setAdapter(adapterRili);
        adapterRili.notifyDataSetChanged();
        //查看老师
        adapterRili.setClick(new AdapterRili.IClick() {
            @Override
            public void click(int pos) {

            }
        });
        querenRiliYueke.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(RiLiActivity.this, RiLiYueKeJiaoShiLeiBiaoActivituy.class));
            }
        });

    }

    @Override
    protected IBasePersenter initPersenter() {
        return null;
    }

    @Override
    protected void initData() {

    }



}